﻿@model FoodBank.Web.ViewModels.SignInViewModel
@{
    ViewBag.Title = @AccountResources.SignIn;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section ScriptSection
{
    <script type="text/javascript">
        $(function () {
            $('#user-panel').remove();
        });
    </script>
}
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    <div>
        <fieldset>
            <legend>@AccountResources.SignIn</legend>
            <div>
                @Html.TextBoxFor(e => e.UserName)
            </div>
            <div>
                @Html.PasswordFor(e => e.Password)
            </div>
            <div>
                @Html.CheckBoxFor(e => e.Remember)
                <label for="remember">@AccountResources.Remember</label>
            </div>
            <br />
            <div class="btn-pane">
                <div>
                    <input type="submit" value="@AccountResources.SignIn" class="float-left btn btn-white" />
                </div>
                <div style="clear: both">
                </div>
                <br />
                <div>
                    @Html.ActionLink(@AccountResources.Register, "Register", null, new{ @class = "float-left" })
                    @Html.ActionLink(@AccountResources.ForgotPassword, "ForgotPassword", null, new { @class = "float-right" })
                </div>
            </div>
        </fieldset>
    </div>
}
